<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:insert="~{include :: header('修改岗位')}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
		<form class="form-horizontal m" id="form-post-edit" th:object="${post}">
			<input id="postId" name="postId" type="hidden" th:field="*{postId}"/>
			<div class="form-group row" style="margin-top: 30px">
				<label class="col-sm-2 col-form-label text-sm-right">岗位名称</label>
				<div class="col-sm-6">
					<input class="form-control" type="text" th:field="*{postName}" disabled>
				</div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 col-form-label text-sm-right">岗位编码</label>
				<div class="col-sm-6">
					<input class="form-control" type="text" th:field="*{postCode}" disabled>
				</div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 col-form-label text-sm-right">显示顺序</label>
				<div class="col-sm-3">
					<input class="form-control" type="text" name="sort" th:field="*{sort}">
				</div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 col-form-label text-sm-right">备注</label>
				<div class="col-sm-6">
					<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:insert="~{include :: footer}" />
	<script type="text/javascript">
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save("/post/edit.json", $('#form-post-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
